using System;
using System.Windows.Forms;

namespace PSSymbolStore.Manager.Windows
{
    class Hourglass : IDisposable
    {
        private readonly Cursor _currentCursor;

        public Hourglass()
        {
            _currentCursor = Cursor.Current;
            Cursor.Current = Cursors.WaitCursor;
        }

        #region IDisposable Members

        public void Dispose()
        {
            Cursor.Current = _currentCursor;
        }

        #endregion
    }
}
